import os
import sys


class PathUtils:
    @staticmethod
    def getCurrentPath():
        return sys.argv[0]

    @staticmethod
    def getParentPath(path):
        return os.path.abspath(os.path.dirname(path) + os.path.sep + ".")

    @staticmethod
    def getParentFilePath(file):
        path = file.name
        return os.path.abspath(os.path.dirname(path) + os.path.sep + ".")
